* note -------------------------------------------------------------------------

* in the main text, table 1 displays a summary of the output to be created below
* the complete results are displayed in the supporting information (table s3)

* run the regressions models and save them to memory ---------------------------

eststo: reg akp_nov treatment akp_jun recruitment_pool, cluster(province)

eststo: reg akp_nov treatment akp_jun recruitment_pool                          ///
treatment_nonterror casualty_district kurdish_district akp_district             ///
higher_education min_margin turnout_jun, cluster(province)

eststo: reg akp_nov treatment treatment_multi akp_jun recruitment_pool,         ///
cluster(province)

eststo: reg akp_nov treatment treatment_multi akp_jun recruitment_pool          ///
treatment_nonterror casualty_district kurdish_district akp_district             ///
higher_education min_margin turnout_jun, cluster(province)

* print the results ------------------------------------------------------------

esttab,                                                                         ///
replace se b(3) se(3) stats(N vce r2) label nodepvars nonotes nomtitles         ///
order(treatment treatment_multi)                                                ///
substitute(vce "Clusters" cluster "81")                                         ///
title("Table 1: Regression models of government vote share")

* save the results -------------------------------------------------------------

esttab using "./tables/table_1.tex",                                            ///
replace se b(3) se(3) stats(N vce r2) label nodepvars nonotes nomtitles         ///
order(treatment treatment_multi)                                                ///
substitute(vce "Clusters" cluster "81")                                         ///
title("Regression models of government vote share")

* remove the models from memory ------------------------------------------------

eststo clear